package castleContent;

public class Unit {
	private static final int UPGRADE = 1;
	private int attackDamage;
	private int healthPoints;
	private int foodCost;
	private int hpLevel = 1;
	private int adLevel = 1;
	//private Castle castle;

	public int getHpLevel() {
		return hpLevel;
	}

	public void setHpLevel(int hpLevel) {
		this.hpLevel = hpLevel;
	}

	public int getAdLevel() {
		return adLevel;
	}

	public void setAdLevel(int adLevel) {
		this.adLevel = adLevel;
	}

	protected void upgradeAD() {
		setAttackDamage(getAttackDamage() + UPGRADE);
	}

	protected void upgradeHP() {
		setHealthPoints(getHealthPoints() + UPGRADE);
	}

	
	public int getFoodCost() {
		return foodCost;
	}
	
	protected void setFoodCost(int foodCost) {
		this.foodCost = foodCost;
	}
	
	public int getAttackDamage() {
		return attackDamage;
	}

	protected void setAttackDamage(int attackDamage) {
		this.attackDamage = attackDamage;
	}

	public int getHealthPoints() {
		return healthPoints;
	}

	protected void setHealthPoints(int healthPoints) {
		this.healthPoints = healthPoints;
	}

}
